package dongshi.daddy.service.providerandconsumerconfiguration;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component("providerAndConsumerOnlyOneConsumerService")
public class ProviderAndConsumerOnlyOneConsumerService {
    @Reference
    private ProviderAndConsumerOnlyOneService providerAndConsumerOnlyOneService;

    public String doSayHello(String name) {
        return providerAndConsumerOnlyOneService.sayHi(name);
    }
}
